import os
import sys

#  源文件url
source = sys.argv[1]
# 目标文件ulr
target = sys.argv[2]
fp2 = open(target, "w", encoding='UTF-8')
with open(source, mode="r", encoding='UTF-8') as fp1:
    while True:
        if not fp1.readline(1024):
            break
        fp2.writelines(fp1.readline(1024))
    fp1.close()
fp2.close()
print("source", source)
print("target", target)
